package com.xmtlxx.wms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 盘点明细业务对象 t_inventory_dtl
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("盘点明细业务对象")
public class InventoryDtlBo extends BaseEntity {

    /**
     * 明细id
     */
    @ApiModelProperty(value = "明细id")
    private String id;

    /**
     * 盘点id
     */
    @ApiModelProperty(value = "盘点id", required = true)
    @NotBlank(message = "盘点id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String inventoryId;

    /**
     * 库存id
     */
    @ApiModelProperty(value = "库存id", required = true)
    @NotBlank(message = "库存id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stockId;

    /**
     * 物品编号
     */
    @ApiModelProperty(value = "物品编号", required = true)
    @NotBlank(message = "物品编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String pno;

    /**
     * 物品名称
     */
    @ApiModelProperty(value = "物品名称", required = true)
    @NotBlank(message = "物品名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 账目数据
     */
    @ApiModelProperty(value = "账目数据", required = true)
    @NotNull(message = "账目数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long books;

    /**
     * 实盘数据
     */
    @ApiModelProperty(value = "实盘数据", required = true)
    @NotNull(message = "实盘数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nums;

    /**
     * 盘盈/盘亏
     */
    @ApiModelProperty(value = "盘盈/盘亏", required = true)
    @NotNull(message = "盘盈/盘亏不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long results;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    /**
     * 盘点方式
     */
    @ApiModelProperty(value = "盘点方式")
    private String planMode;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

}
